/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—07—06
 * Time: 13:19
 */
public class Demo01 {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(56);
        myArrayList.display();
        System.out.println(myArrayList.contains(2));
        System.out.println(myArrayList.get(3));
        myArrayList.set(2,33);
        myArrayList.display();
        myArrayList.remove(2);
        myArrayList.display();
    }
}
